package com.cwn.wizbank.scoket;
 
import java.sql.ResultSet;
import java.sql.SQLException;
import org.hibernate.tool.schema.extract.internal.SequenceInformationExtractorLegacyImpl;
 
 
public class SequenceInformationExtractorDMDatabaseImpl extends SequenceInformationExtractorLegacyImpl {
 
    public static final SequenceInformationExtractorDMDatabaseImpl INSTANCE = new SequenceInformationExtractorDMDatabaseImpl();
 
    @Override
    protected String sequenceCatalogColumn() {
        return null;
    }
 
    @Override
    protected String sequenceSchemaColumn() {
        return null;
    }
 
    @Override
    protected String sequenceStartValueColumn() {
        return null;
    }
 
    @Override
    protected String sequenceMinValueColumn() {
        return "min_value";
    }
 
    @Override
    protected Long resultSetMaxValue(ResultSet resultSet) throws SQLException {
        return resultSet.getBigDecimal( "max_value" ).longValue();
    }
 
    @Override
    protected String sequenceIncrementColumn() {
        return "increment_by";
    }
}
————————————————

                            版权声明：本文为博主原创文章，遵循 CC 4.0 BY-SA 版权协议，转载请附上原文出处链接和本声明。
                        
原文链接：https://blog.csdn.net/li18310727696/article/details/125088440